#ifndef TANKSHELL_H
#define TANKSHELL_H

#include <CommonClass.h>
#include "Tank.h"

class Tank;

class TankShell : public CSprite
{
    public:
        TankShell(const char* szName);
        virtual ~TankShell();

        int getSpeed();
        void setSpeed(int _speed);

        int getPower();
        void setPower(int _power);

        Tank* getTank();
        void setTank(Tank* _tank);

        virtual bool shellExplosion(CSprite* pSprite)=0;

    protected:

    private:
        int     speed;  //炮弹的移动速度
        int     power;  //炮弹的威力
        Tank*   tank;   //炮弹属于的坦克
};

#endif // TANKSHELL_H
